feat(cli): add some (hidden) agent handling commands#187
Conversation
Also fix a few other small things: * preserve agent version info where needed * better error messages for bad server calls
james-rl
left a comment
There was a problem hiding this comment.
Looks good to me. A few minor comments in the feedback
|
|
||
| function truncate(str: string, maxLen: number): string { | ||
| if (str.length <= maxLen) return str; | ||
| return str.slice(0, maxLen - 1) + "…"; |
There was a problem hiding this comment.
should this be maxLen -1 - "...".length?
| ); | ||
| } | ||
|
|
||
| console.log(); |
There was a problem hiding this comment.
is this just for the newline?
| return getAgent(idOrName); | ||
| } | ||
|
|
||
| // Look up by name — fetch all versions with this name and pick the latest. |
There was a problem hiding this comment.
This isn't a problem with this code, but reading through this makes me wonder if we should add a backend endpoint for this purpose
There was a problem hiding this comment.
Yeah, I considered this as well. At some point this might make sense, especially if we have lots of versions for public agents. (eg, re-publish every week, across 100s of agents?). It depends on how often this 'list' feature gets used; it might be fairly rare, in which case it doesn't much matter?
🤖 I have created a release *beep* *boop* --- ## [1.15.0](v1.14.0...v1.15.0) (2026-04-03) ### Features * axon list with pagination and api-client upgrade ([#184](#184)) ([dc9743e](dc9743e)) * **cli:** add some (hidden) agent handling commands ([#187](#187)) ([1a92f5f](1a92f5f)) ### Bug Fixes * clean stdout for --config-only when appending SSH config ([#192](#192)) ([4428295](4428295)) * **cli:** account for pending scenarios in rli display ([#185](#185)) ([c82d528](c82d528)) * widen VERSION column in agent list to prevent truncation ([#190](#190)) ([c7eba09](c7eba09)) ### Performance Improvements * fetch total count in the background, not foreground ([#189](#189)) ([0903d89](0903d89)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Also fix a few other small things: